# FROM registry.cn-shenzhen.aliyuncs.com/k-pub/app-jvms
# FROM registry.cn-shenzhen.aliyuncs.com/k-pub/app-java
FROM registry.cn-shenzhen.aliyuncs.com/infrastlabs/env-java8:sboot-v1.0
MAINTAINER sam <sldevsir@126.com>

# TODO ENV: params: orgz repo module buildDate
ENV APP_JVM=openj9
USER root

# ADD unpack /app
# ADD --chown=www:www mnt /opt/appdata/pack
ADD --chown=www:www unpack /app

##run as www
USER www
WORKDIR /app
# CMD ["bash","-c","/app/bin/run.sh"]
CMD ["bin/run.sh"]
